<?php
/**
 * Created by PhpStorm.
 * User: luxuewen_gz
 * Date: 2018/12/29
 * Time: 8:58
 */

namespace app\admin\controller;


class Permission extends Base
{
    public function getAll(){
        return model('Permission', 'logic')->getAll();
    }
    public function getAllWithRoleEdit(){
        $data = [
            'role_id'       =>  $this->request->get('role_id'),
        ];
        return model('Permission', 'logic')->getAllWithRoleEdit($data);
    }

}